package com.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.store.domain.R;
import com.store.domain.dto.OrderDto;
import com.store.domain.entity.Order;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * 订单表(Order)表服务接口
 *
 * @author yu
 * @since 2024-06-26 01:12:42
 */
public interface OrderService extends IService<Order> {

    R getPageOrder(Integer pageNum, Integer pageSize, Order order);

    R getOrderById(String orderId);

    R closeOrder(String orderId);

    R deliveryOrder(OrderDto orderDto);

    void exp(HttpServletResponse response) throws IOException;

    R getUserOrder();

    R sureOrder(String orderId);

    R submitOrder(OrderDto orderDto);

    R payOrder(String id);
}


